package com.mhc.haval.dal.mapper.ext;

import com.mhc.haval.dal.mapper.RoleMapper;
import com.mhc.haval.dal.model.RoleDO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * MyBatis Ext Mapper for Role.
 */

@Mapper
@Repository
public interface RoleExtMapper extends RoleMapper {

    List<RoleDO> queryByUserid(Long staffId);

    /**
     * select by staff id.
     */
    List<RoleDO> selectByStaffId(Long staffId);

    /**
     * select by dept id.
     */
    List<RoleDO> selectByDeptId(Long deptId);

}